package com.ruoyi.system.service.impl;

import java.util.List;
import com.ruoyi.common.utils.DateUtils;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.ruoyi.system.mapper.FaEsmTaglogMapper;
import com.ruoyi.system.domain.FaEsmTaglog;
import com.ruoyi.system.service.IFaEsmTaglogService;

/**
 * 鞋标签扫码记录Service业务层处理
 * 
 * @author colin
 * @date 2021-08-11
 */
@Service
public class FaEsmTaglogServiceImpl implements IFaEsmTaglogService 
{
    @Autowired
    private FaEsmTaglogMapper faEsmTaglogMapper;

    /**
     * 查询鞋标签扫码记录
     * 
     * @param id 鞋标签扫码记录主键
     * @return 鞋标签扫码记录
     */
    @Override
    public FaEsmTaglog selectFaEsmTaglogById(String id)
    {
        return faEsmTaglogMapper.selectFaEsmTaglogById(id);
    }

    /**
     * 查询鞋标签扫码记录列表
     * 
     * @param faEsmTaglog 鞋标签扫码记录
     * @return 鞋标签扫码记录
     */
    @Override
    public List<FaEsmTaglog> selectFaEsmTaglogList(FaEsmTaglog faEsmTaglog)
    {
        return faEsmTaglogMapper.selectFaEsmTaglogList(faEsmTaglog);
    }

    /**
     * 新增鞋标签扫码记录
     * 
     * @param faEsmTaglog 鞋标签扫码记录
     * @return 结果
     */
    @Override
    public int insertFaEsmTaglog(FaEsmTaglog faEsmTaglog)
    {
        faEsmTaglog.setCreateTime(DateUtils.getNowDate());
        return faEsmTaglogMapper.insertFaEsmTaglog(faEsmTaglog);
    }

    /**
     * 修改鞋标签扫码记录
     * 
     * @param faEsmTaglog 鞋标签扫码记录
     * @return 结果
     */
    @Override
    public int updateFaEsmTaglog(FaEsmTaglog faEsmTaglog)
    {
        return faEsmTaglogMapper.updateFaEsmTaglog(faEsmTaglog);
    }

    /**
     * 批量删除鞋标签扫码记录
     * 
     * @param ids 需要删除的鞋标签扫码记录主键
     * @return 结果
     */
    @Override
    public int deleteFaEsmTaglogByIds(String[] ids)
    {
        return faEsmTaglogMapper.deleteFaEsmTaglogByIds(ids);
    }

    /**
     * 删除鞋标签扫码记录信息
     * 
     * @param id 鞋标签扫码记录主键
     * @return 结果
     */
    @Override
    public int deleteFaEsmTaglogById(String id)
    {
        return faEsmTaglogMapper.deleteFaEsmTaglogById(id);
    }
}
